package com.cloudspace.yunloan.network.api;

import com.cloudspace.yunloan.update.UpdateApi;

/**
 * Created by xianh on 16/12/15.
 */

public class API {
    private static API api;

    private UserApi mUserApi;
    private UpdateApi updateApi;


    public synchronized UserApi getUserApi() {
        if (mUserApi == null) {
            mUserApi = new UserApi();
        }
        return mUserApi;
    }

    public static API getInstance() {
        if (api == null) {
            api = new API();
        }
        return api;
    }

    public synchronized UpdateApi getUpdateApi(){
        if (updateApi == null){
            updateApi = new UpdateApi();
        }

        return updateApi;
    }

}
